﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Data.SqlClient;
using System.Diagnostics;
namespace UnitTest
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestMethod1()
        {
            SqlConnectionStringBuilder connBuilder = new SqlConnectionStringBuilder();
            connBuilder.DataSource = "(LocalDB)\\v11.0";
            connBuilder.InitialCatalog = "dmp_release";
            connBuilder.PersistSecurityInfo = true;
            connBuilder.IntegratedSecurity = true;
            DataAccess.DbAccess.Db.Add("test", "System.Data.SqlClient", connBuilder.ConnectionString);
            DataAccess.DbAccess.Default.ExecuteReader("select * from sys_tables_state", item => Debug.WriteLine(item.GetFieldType(0)));
        }
    }
}
